<p>登陆帐号</p>

<?php echo Form::open(array("class"=>"form-horizontal", "role"=>'form')); ?>

<div class="form-group">
    <?php echo Form::label('用户名', 'Username', array('class'=>'col-sm-2 control-label')); ?>
    <div class="col-sm-10">
    <?php echo Form::input('username', Input::post('username', ''),
            array('class' => 'form-control', 'placeholder'=>'Username')); ?>
    </div>
</div>

<div class="form-group">
    <?php echo Form::label('密码', 'password', array('class'=>'col-sm-2 control-label')); ?>
    <div class="col-sm-10">
        <?php echo Form::password('password', '',
            array('class' => 'form-control', 'placeholder'=>'Password')); ?>
    </div>

</div>
<div class="form-group">
    <?php echo Form::label('验证码', 'verifycode', array('class'=>'col-sm-2 control-label')); ?>
    <div class="col-sm-10">

        <?php echo Form::input('verifycode', '',
            array('class' => 'form-control', 'placeholder'=>'')); ?>

        <img id="vimg" src="<?php echo Uri::create('admin/logincode');?>">
        <a href="#" onclick="document.getElementById('vimg').src='<?php echo Uri::create('admin/logincode');?>?r='+Math.random();">刷新</a>
    </div>

</div>

<div class="form-group">
    <label class='col-sm-2  control-label'>&nbsp;</label>

    <div class='col-sm-10'>
        <?php echo Form::submit('submit', '登录',
            array('class' => 'btn btn-primary')); ?>
    </div>
</div>


<?php echo Form::close(); ?>